/* SmarTest Studio - 通知样式 */

/* 通知容器 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 12px 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slide-in 0.3s ease-out;
    border-left: 4px solid var(--primary-color);
}

/* 通知类型样式 */
.notification-success {
    border-left-color: var(--secondary-color);
}

.notification-danger {
    border-left-color: var(--accent-color);
}

.notification-warning {
    border-left-color: #f9ab00;
}

.notification-info {
    border-left-color: var(--primary-color);
}

/* 通知内容 */
.notification-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.notification-content i {
    font-size: 20px;
    margin-right: 12px;
}

.notification-content span {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

/* 通知关闭按钮 */
.notification-close {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 通知隐藏动画 */
.notification-hide {
    animation: slide-out 0.3s ease-out forwards;
}

/* 动画关键帧 */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 多个通知的堆叠 */
.notification + .notification {
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .notification {
        min-width: auto;
        max-width: calc(100% - 40px);
        width: calc(100% - 40px);
    }
}